package com.ruoyi.project.drugs.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.Objects;

public class Workload {
    private Integer registerid;
    private Integer doctornum;
    private String doctorname;
    private Integer registerprice;
    private String patientname;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date visittime;

    @Override
    public String toString() {
        return "Workload{" +
                "registerid=" + registerid +
                ", doctornum=" + doctornum +
                ", doctorname='" + doctorname + '\'' +
                ", registerprice=" + registerprice +
                ", patientname='" + patientname + '\'' +
                ", visittime=" + visittime +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Workload workload = (Workload) o;
        return Objects.equals(registerid, workload.registerid) &&
                Objects.equals(doctornum, workload.doctornum) &&
                Objects.equals(doctorname, workload.doctorname) &&
                Objects.equals(registerprice, workload.registerprice) &&
                Objects.equals(patientname, workload.patientname) &&
                Objects.equals(visittime, workload.visittime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(registerid, doctornum, doctorname, registerprice, patientname, visittime);
    }

    public Integer getRegisterid() {
        return registerid;
    }

    public void setRegisterid(Integer registerid) {
        this.registerid = registerid;
    }

    public Integer getDoctornum() {
        return doctornum;
    }

    public void setDoctornum(Integer doctornum) {
        this.doctornum = doctornum;
    }

    public String getDoctorname() {
        return doctorname;
    }

    public void setDoctorname(String doctorname) {
        this.doctorname = doctorname;
    }

    public Integer getRegisterprice() {
        return registerprice;
    }

    public void setRegisterprice(Integer registerprice) {
        this.registerprice = registerprice;
    }

    public String getPatientname() {
        return patientname;
    }

    public void setPatientname(String patientname) {
        this.patientname = patientname;
    }

    public Date getVisittime() {
        return visittime;
    }

    public void setVisittime(Date visittime) {
        this.visittime = visittime;
    }

    public Workload() {
    }

    public Workload(Integer registerid, Integer doctornum, String doctorname, Integer registerprice, String patientname, Date visittime) {
        this.registerid = registerid;
        this.doctornum = doctornum;
        this.doctorname = doctorname;
        this.registerprice = registerprice;
        this.patientname = patientname;
        this.visittime = visittime;
    }
}
